package com.dmzc.addon;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class TestComparable {
    public static void main(String[] args) {
        List<Tutle> tutles = new ArrayList();
        Tutle tutle;
        tutle = new Tutle(2, 3, 5);
        tutles.add(tutle);

        tutle = new Tutle(2, 4, 5);
        tutles.add(tutle);

        tutle = new Tutle(3, 3, 5);
        tutles.add(tutle);
        Object[] objects = tutles.toArray();
        Arrays.sort(objects);
        for (int i = 0; i < objects.length; i++) {
            System.out.println(objects[i]);
        }


    }
}
